package com.api.syh56.shengyunhui.service;


import com.api.syh56.shengyunhui.entity.Quote;
import com.api.syh56.shengyunhui.entity.vo.WAGParamVOAndQuote;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;


public interface QuoteService extends IService<Quote>{

    Page<WAGParamVOAndQuote> quotePageToWAGParamVOAndQuotePage(Page<Quote> quotePage);

    WAGParamVOAndQuote convertToWAGParamVOAndQuote(Quote quote);

    Page<WAGParamVOAndQuote> quoteRecentPage(Page page, Short status);

    /**
     * 货主确认某一个报价后，将被选中的设置为选中，将未被选中的报价设置为未选中
     */
    void confirmQuote(Quote quote);

    /**
     * 货主取消某一个运单后，将所有专线报价更新为未选中
     */
    void cancelWaybillAndUpdateQuote(Long waybillId);

    void getQuo();

    void deleteQuote(Long id);
}
